<?php
/*
用户提交信息页
*/


/*if(!isset($_SESSION['user']))
{
	exit;
}
*/
//require('mysql.php');

include 'include/init.php';
//使用session耗费资源多，暂不使用
//session_start();
//$user=$_SESSION['user']['uid'];

$comet=new cometModel();

$data['fromid']=$_POST['u'];
$data['content']=$_POST['content'];
$data['toid']=$_POST['to'];
$data['time']=time();


if($comet->add($data))
{
	echo 'ok';
}
else
{
	echo 'no';
}

